<ion-view title="下载应用">
    <ion-header-bar class="bar-subheader download-search-bar">
        <label class="item-input-wrapper">
            <i class="icon ion-ios-search-strong placeholder-icon"></i>
            <input type="search" placeholder="请输入..." ng-model="data.search">
        </label>
    </ion-header-bar>
    <ion-content has-bouncing="true" class="u9-content">
        <ion-list class="app-list">
            <ion-item ng-repeat="x in data.unInstallApps |filter:data.search" ng-switch="x.image" class="item-icon-right">
                <img ng-switch-when="sp" ng-src="img/sp.png"/>
                <img ng-switch-when="kq" ng-src="img/kq.png"/>
                <img ng-switch-when="xx" ng-src="img/xx.png"/>
                <img ng-switch-when="xd" ng-src="img/xd.png"/>
                <img ng-switch-when="xz" ng-src="img/xz.png"/>
                <img ng-switch-when="jh" ng-src="img/jh.png"/>
                <img ng-switch-when="kb" ng-src="img/kb.png"/>
                <img ng-switch-when="bb" ng-src="img/bb.png"/>
                <img ng-switch-when="pm" ng-src="img/pm.png"/>
                <img ng-switch-when="bc" ng-src="img/bc.png"/>
                <img ng-switch-when="lr" ng-src="img/lr.png"/>
                <img ng-switch-when="dt" ng-src="img/dt.png"/>
                <img ng-switch-when="ch" ng-src="img/ch.png"/>
                <img ng-switch-when="jx" ng-src="img/jx.png"/>
                <img ng-switch-default ng-src="img/default.png"/>
                <span>{{x.name}}</span>
                <i class="icon ion-ios-cloud-download-outline" ng-click="installApp(x.id)"></i>
            </ion-item>
            <ion-item ng-repeat="x in data.installApps |filter:data.search" ng-switch="x.image" class="item-icon-right">
                <img ng-switch-when="sp" ng-src="img/sp.png"/>
                <img ng-switch-when="kq" ng-src="img/kq.png"/>
                <img ng-switch-when="xx" ng-src="img/xx.png"/>
                <img ng-switch-when="xd" ng-src="img/xd.png"/>
                <img ng-switch-when="xz" ng-src="img/xz.png"/>
                <img ng-switch-when="jh" ng-src="img/jh.png"/>
                <img ng-switch-when="kb" ng-src="img/kb.png"/>
                <img ng-switch-when="bb" ng-src="img/bb.png"/>
                <img ng-switch-when="pm" ng-src="img/pm.png"/>
                <img ng-switch-when="bc" ng-src="img/bc.png"/>
                <img ng-switch-when="lr" ng-src="img/lr.png"/>
                <img ng-switch-when="dt" ng-src="img/dt.png"/>
                <img ng-switch-when="ch" ng-src="img/ch.png"/>
                <img ng-switch-when="jx" ng-src="img/jx.png"/>
                <img ng-switch-default ng-src="img/default.png"/>
                <span>{{x.name}}</span>
                <span class="u9-update-badge" ng-if="x.isUpdate"></span>
                <i class="icon update-app ion-ios-refresh-outline" ng-if="x.isUpdate" ng-click="updateApp(x.id)"></i>
                <i class="icon ion-ios-close-outline" ng-click="unInstallApp(x.id)"></i>
            </ion-item>
        </ion-list>
    </ion-content>
</ion-view>